<%= form_for([@invoice, @invoice.invoice_details.build]) do |f| %>
  
  <div class="row">
      <div class="col-md-6">
      	<%= render "invoice_details/stock_logging_form_purchase", form: f %>
      </div>
   
      <div class="col-md-6">
		  <div class="form-group">
			<%= f.label :fee %><br>
			<%= f.text_field :fee %>
		  </div>
		  <div class="form-group">
			<%= f.label :discount %><br>
			<%= f.text_field :discount %>
		  </div>
		  <div class="form-group">
			<%= f.label :invoice_item_type_id %><br>
			<%= f.collection_select(:invoice_item_type_id, InvoiceItemType.all, :id, :label, prompt: true) %>
			<%= link_to feather_icon('circle-plus'), new_invoice_item_type_path %>
		  </div>
		</div>
    </div>
   <%= f.submit class: "btn btn-primary" %>
<% end %>
